<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script src="assets/scripts/common.js"></script>

<div id="wrapper">
		<!-- NAVBAR -->
		<nav class="navbar navbar-default navbar-fixed-top">
			<div class="brand">
				<a href="index.do"><img src="assets/img/logo-dark.png" alt="Klorofil Logo" class="img-responsive logo"></a>
			</div>
			<div class="container-fluid">
				<div class="navbar-btn">
					<button type="button" class="btn-toggle-fullwidth"><i class="lnr lnr-arrow-left-circle"></i></button>
			</div>
			
			<div id="navbar-menu">
					<ul class="nav navbar-nav navbar-right">
					<li>
		        	<a class="navbar-brand icon-menu" href="#" style="font-size:15px" >工作日期：<% out.print( session.getAttribute("session_work_date")); %></a>
		        	</li>
		        	<li>
		        	<a class="navbar-brand icon-menu" href="#" 	style="font-size:15px" >工作机构：<% out.print( session.getAttribute("session_user_ori")); %></a>
		        	</li>
		        	<li>
		        	<a class="navbar-brand icon-menu" href="#" 	style="font-size:15px" >柜员名称：<% out.print( session.getAttribute("session_user_name")); %></a>
		        	</li>
		        	<li>
		        	<a class="navbar-brand icon-menu" href="#" onclick="logout();" 	style="font-size:15px"  >注销</a>
		        	</li>
		        	
					</ul>
				</div>
			</div>
		</nav>	
<script type="text/javascript">
	
	function logout(){
		$.MsgBox.Confirm("温馨提示","柜员注销", logoutSubmit);
	 }
	function logoutSubmit(){
		$.ajax({
	 		type:"post",
	 		url: "/chuan/logout.do" ,
	 		success:function(){
	 			window.location.href="/chuan/login.do";				 
	 		},
	 		error: function(XMLHttpRequest, textStatus, errorThrown){
            	alert("执行失败");
                alert(XMLHttpRequest.status);
                alert(XMLHttpRequest.readyState);
                alert(textStatus);
             }
	 	});
	}
</script>